package com.yurun.service.impl;

import com.yurun.entity.Student;
import com.yurun.mapper.StudentMapper;
import com.yurun.service.StudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

/**
 * @author 宫静雨
 */
@Service
@Transactional(rollbackFor = SQLException.class)
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Resource
    private StudentMapper studentMapper;

    @Override
    public List<Student> listStudent(List<Integer> studentId, String studentName, List<Integer> classId) {
        return studentMapper.listStudent(studentId, studentName, classId);
    }
}
